package com.jjh.service;

import com.jjh.consts.Result;
import com.jjh.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User getByUserName(String username);


    User getById();


    Result insertOne(User user);


    boolean updateById(User user);


    boolean deleteById(Integer id);


    Result page(Integer page,Integer size,Map<String, Object> map);

    List<User> getByCondition(Map<String,Object> conditions);


    Result addUser(User user);

    User getByName(String name);

    Result changeStatus(Integer id,Integer status);

    Result updateUser(User user);

    Result deleteByIds(List<Integer> ids);
}
